import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;

public class test1 {
    public static void main(String[] args) {
        String filePath = "E.java";
        File file1 = new File(filePath);
        try (RandomAccessFile random = new RandomAccessFile(file1, "rw")) {
            random.seek(0);
            long m = random.length();
            while (m >= 0) {
                m = m - 1;
                random.seek(m);
                int c=random.readByte();
                if (c <= 255 && c >= 0) {
                    System.out.println((char) c);
                } else {
                    m = m - 1;
                    random.seek(m);
                    byte cc[] = new byte[2];
                    random.readFully(cc);
                    System.out.println(new String(cc));
                }
            }
        } catch (Exception exp) {
        }
    }
}